/*!
 * Copyright 2020 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

@import "../variables";

.#{$component-prefix}divider {

}

.#{$component-prefix}divider-horizontal {
  margin: 0;
  border: 0;
  position: relative;

  &:after {
    content: ' ';
    position: absolute;
    left: 0;
    bottom: 0;
    background: $divider-color;
    width: 100%;
    height: 1px;
    transform: scaleY(1);
    transform-origin: 0 0;
  }
}

.#{$component-prefix}divider-horizontal-hairline {
  &:after {
    transform: scaleY(0.5);
  }
}

.#{$component-prefix}divider-vertical {
  margin: 0;
  border: 0;
  position: relative;

  &:after {
    content: ' ';
    position: absolute;
    left: 0;
    bottom: 0;
    top: 2px;
    background: #f7f7f7;
    width: 2px;
    height: 12px;
    transform: scaleX(0.5);
    transform-origin: 0 0;
  }
}

.#{$component-prefix}divider-middle {
  margin: 0 10px;
}
